package cn.bonoon.entities.plugins;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.bonoon.kernel.support.entities.AbstractPersistable;

@Entity
@Table(name = "T_SIMPLEPRIVILEGE")
public class SimplePrivilegeEntity extends AbstractPersistable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4137284588480081667L;

	@ManyToOne
	@JoinColumn(name = "R_ROLE_ID")
	private RoleEntity role;
	@Column(name = "C_KEY")
	private String key;
	
	public RoleEntity getRole() {
		return role;
	}
	public void setRole(RoleEntity role) {
		this.role = role;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
}
